﻿using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Tool
{
    public class ResultOutput
    {
        public Result getModel()
        {
            Result rs = new Result();
            rs.msg = S_Result.msg;
            rs.data = S_Result.data;
            if (S_Result.error != null)
            {
                rs.code = "400";
                rs.error = S_Result.error;
            }
            else
            {
                rs.code = "200";
                rs.data = S_Result.data;
            }
            return rs;
        }
    }
}
